<?php

namespace services\notices;

use think\Request;
use think\Response;
use think\Session;
use think\Exception;
use think\Config;
use think\Loader;
use think\Lang;

class System implements NoticeInterface
{
    private $templates = [
        'quit_deposits' => 'FdXX-frnAXM-3L9AaRuYZ6z9rGb9Tlbatwy9c_kPVys',
        'recharge'      => 'qF4scfrnIZ8D6kJ-gTS2oqdCZ95Xk7j16bmZIlmLPjo',
        'ordercreate'   => 'tZ8VLtV5BehUvO58FzqeQj1VYJQAe56HqQESOSAOoQo',
        'wishcreate'    => 'onU0ZmRYGjoyi8IxYFeqWeaY59hpFVVMaA-nICHFfIw'
    ];

	public function __construct($pimple)
    {
        $pimple->system = $this;
    }

    public function send($to_user_sign, $title, $content = null, $from_sign = 0)
    {
        Loader::model('Notices')->sendNotice($from_sign, $title, $content, $to_user_sign);
    }
}
